[INFO] cloning repository https://github.com/KFTamang/rv-emu
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KFTamang/rv-emu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKFTamang%2Frv-emu", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKFTamang%2Frv-emu'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9cac631c323ea96b83bf46dc14a5b40c55528560
[INFO] checking KFTamang/rv-emu against master#e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682 for beta-170-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKFTamang%2Frv-emu" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/KFTamang/rv-emu on toolchain e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/KFTamang/rv-emu
[INFO] finished tweaking git repo https://github.com/KFTamang/rv-emu
[INFO] tweaked toml for git repo https://github.com/KFTamang/rv-emu written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/KFTamang/rv-emu already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 616fb3f4c0cf58a7116d837c4427bae344dcdfe707e735cb1547562074022489
[INFO] running `Command { std: "docker" "start" "-a" "616fb3f4c0cf58a7116d837c4427bae344dcdfe707e735cb1547562074022489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "616fb3f4c0cf58a7116d837c4427bae344dcdfe707e735cb1547562074022489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "616fb3f4c0cf58a7116d837c4427bae344dcdfe707e735cb1547562074022489", kill_on_drop: false }`
[INFO] [stdout] 616fb3f4c0cf58a7116d837c4427bae344dcdfe707e735cb1547562074022489
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 56cf2c1f8230816ba355f09b3b218f79f462db9eac74de034c4d8c62aec20fd8
[INFO] running `Command { std: "docker" "start" "-a" "56cf2c1f8230816ba355f09b3b218f79f462db9eac74de034c4d8c62aec20fd8", kill_on_drop: false }`
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling proc-macro2 v1.0.39
[INFO] [stderr]    Compiling unicode-ident v1.0.0
[INFO] [stderr]    Compiling syn v1.0.95
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]     Checking os_str_bytes v6.1.0
[INFO] [stderr]    Compiling heck v0.4.0
[INFO] [stderr]     Checking textwrap v0.15.0
[INFO] [stderr]     Checking clap_lex v0.2.0
[INFO] [stderr]     Checking termcolor v1.1.3
[INFO] [stderr]     Checking strsim v0.10.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling indexmap v1.8.2
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]    Compiling clap_derive v3.1.18
[INFO] [stderr]     Checking clap v3.1.18
[INFO] [stderr]     Checking rv-emu v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `asid`
[INFO] [stdout]    --> src/cpu.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |         let asid = (satp >> 22) & 0x1ff;
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_asid`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]    --> src/cpu.rs:190:21
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let u = bit(pte, 4);
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/cpu.rs:191:21
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 let g = bit(pte, 5);
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/clint.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/clint.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/clint.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/clint.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/clint.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/plic.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/plic.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/plic.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/plic.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/plic.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/virtio.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/virtio.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/virtio.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/virtio.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/virtio.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorSoftwareInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorSoftwareInterrupt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[deny(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineSoftwareInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorTimerInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineTimerInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorExternalInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineExternalInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorSoftwareInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineSoftwareInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorTimerInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineTimerInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorExternalInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineExternalInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `trap` is never used
[INFO] [stdout]    --> src/cpu.rs:238:8
[INFO] [stdout]     |
[INFO] [stdout] 39  | impl Cpu {
[INFO] [stdout]     | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 238 |     fn trap(&mut self) {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `mstatus_mie`, `mie`, `mip`, and `set_bit_in_mip` are never used
[INFO] [stdout]    --> src/csr.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout] 56  | impl Csr {
[INFO] [stdout]     | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn mstatus_mie(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn mie(&self) -> u64 {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 109 |     pub fn mip(&self) -> u64 {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 113 |     pub fn set_bit_in_mip(&mut self, val: u32) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_IER` is never used
[INFO] [stdout]   --> src/uart.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const REG_IER: u64 = 1;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_FCR_ISR` is never used
[INFO] [stdout]   --> src/uart.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const REG_FCR_ISR: u64 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_LCR` is never used
[INFO] [stdout]   --> src/uart.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const REG_LCR: u64 = 3;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_MCR` is never used
[INFO] [stdout]   --> src/uart.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | const REG_MCR: u64 = 4;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_MSR` is never used
[INFO] [stdout]   --> src/uart.rs:15:7
[INFO] [stdout]    |
[INFO] [stdout] 15 | const REG_MSR: u64 = 6;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_SPR` is never used
[INFO] [stdout]   --> src/uart.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const REG_SPR: u64 = 7;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RECEIVE_DATA_READY` is never used
[INFO] [stdout]   --> src/uart.rs:19:7
[INFO] [stdout]    |
[INFO] [stdout] 19 | const RECEIVE_DATA_READY: u64 = 1 << 0;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `OVERRUN_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | const OVERRUN_ERROR: u64 = 1 << 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PARITY_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const PARITY_ERROR: u64 = 1 << 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FRAMING_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | const FRAMING_ERROR: u64 = 1 << 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BREAK_INTERRUPT` is never used
[INFO] [stdout]   --> src/uart.rs:23:7
[INFO] [stdout]    |
[INFO] [stdout] 23 | const BREAK_INTERRUPT: u64 = 1 << 4;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FIFO_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:26:7
[INFO] [stdout]    |
[INFO] [stdout] 26 | const FIFO_ERROR: u64 = 1 << 7;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]    --> src/interrupt.rs:130:5
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub enum Exception {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 130 |     InstructionAddressMissaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 131 |     InstructionAccessFault,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 132 |     IllegalInstruction(u32),
[INFO] [stdout] 133 |     BreakPoint,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout] 134 |     LoadAddressMissaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 135 |     LoadAccessFault,
[INFO] [stdout] 136 |     StoreAMOAddressMisaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 137 |     StoreAMOAccessFault,
[INFO] [stdout] 138 |     EnvironmentalCallFromUMode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 139 |     EnvironmentalCallFromSMode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 140 |     EnvironmentalCallFromMMode,
[INFO] [stdout] 141 |     InstructionPageFault(u32),
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 142 |     LoadPageFault(u32),
[INFO] [stdout] 143 |     StoreAMOPageFault(u32),
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `asid`
[INFO] [stdout]    --> src/cpu.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |         let asid = (satp >> 22) & 0x1ff;
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_asid`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]    --> src/cpu.rs:190:21
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let u = bit(pte, 4);
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `g`
[INFO] [stdout]    --> src/cpu.rs:191:21
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 let g = bit(pte, 5);
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorSoftwareInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_software_interrupt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineSoftwareInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_software_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorTimerInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_timer_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineTimerInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_timer_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorExternalInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_external_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineExternalInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_external_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 50 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rv-emu` (bin "rv-emu" test) due to 7 previous errors; 50 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/clint.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/clint.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/clint.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/clint.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/clint.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/plic.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/plic.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/plic.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/plic.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/plic.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/virtio.rs:17:24
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/virtio.rs:17:35
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn load(&self, addr: u64, size: u64) -> Result<u64, Exception> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/virtio.rs:21:29
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/virtio.rs:21:40
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/virtio.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn store(&mut self, addr: u64, size: u64, value: u64) -> Result<(), Exception> {
[INFO] [stdout]    |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorSoftwareInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorSoftwareInterrupt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[deny(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineSoftwareInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorTimerInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineTimerInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `SupervisorExternalInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::SupervisorExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `MachineExternalInterrupt` is named the same as one of the variants of the type `interrupt::Interrupt`
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `interrupt::Interrupt::MachineExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             --------------------------- matches any value
[INFO] [stdout] ...
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorSoftwareInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineSoftwareInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineSoftwareInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorTimerInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineTimerInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineTimerInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SupervisorExternalInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SupervisorExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `MachineExternalInterrupt`
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_MachineExternalInterrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `trap` is never used
[INFO] [stdout]    --> src/cpu.rs:238:8
[INFO] [stdout]     |
[INFO] [stdout] 39  | impl Cpu {
[INFO] [stdout]     | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 238 |     fn trap(&mut self) {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `mstatus_mie`, `mie`, `mip`, and `set_bit_in_mip` are never used
[INFO] [stdout]    --> src/csr.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout] 56  | impl Csr {
[INFO] [stdout]     | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn mstatus_mie(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn mie(&self) -> u64 {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 109 |     pub fn mip(&self) -> u64 {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 113 |     pub fn set_bit_in_mip(&mut self, val: u32) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_IER` is never used
[INFO] [stdout]   --> src/uart.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const REG_IER: u64 = 1;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_FCR_ISR` is never used
[INFO] [stdout]   --> src/uart.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const REG_FCR_ISR: u64 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_LCR` is never used
[INFO] [stdout]   --> src/uart.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const REG_LCR: u64 = 3;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_MCR` is never used
[INFO] [stdout]   --> src/uart.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | const REG_MCR: u64 = 4;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_MSR` is never used
[INFO] [stdout]   --> src/uart.rs:15:7
[INFO] [stdout]    |
[INFO] [stdout] 15 | const REG_MSR: u64 = 6;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_SPR` is never used
[INFO] [stdout]   --> src/uart.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const REG_SPR: u64 = 7;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RECEIVE_DATA_READY` is never used
[INFO] [stdout]   --> src/uart.rs:19:7
[INFO] [stdout]    |
[INFO] [stdout] 19 | const RECEIVE_DATA_READY: u64 = 1 << 0;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `OVERRUN_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | const OVERRUN_ERROR: u64 = 1 << 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PARITY_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const PARITY_ERROR: u64 = 1 << 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FRAMING_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | const FRAMING_ERROR: u64 = 1 << 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BREAK_INTERRUPT` is never used
[INFO] [stdout]   --> src/uart.rs:23:7
[INFO] [stdout]    |
[INFO] [stdout] 23 | const BREAK_INTERRUPT: u64 = 1 << 4;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FIFO_ERROR` is never used
[INFO] [stdout]   --> src/uart.rs:26:7
[INFO] [stdout]    |
[INFO] [stdout] 26 | const FIFO_ERROR: u64 = 1 << 7;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]    --> src/interrupt.rs:130:5
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub enum Exception {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 130 |     InstructionAddressMissaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 131 |     InstructionAccessFault,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 132 |     IllegalInstruction(u32),
[INFO] [stdout] 133 |     BreakPoint,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout] 134 |     LoadAddressMissaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 135 |     LoadAccessFault,
[INFO] [stdout] 136 |     StoreAMOAddressMisaligned,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 137 |     StoreAMOAccessFault,
[INFO] [stdout] 138 |     EnvironmentalCallFromUMode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 139 |     EnvironmentalCallFromSMode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 140 |     EnvironmentalCallFromMMode,
[INFO] [stdout] 141 |     InstructionPageFault(u32),
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 142 |     LoadPageFault(u32),
[INFO] [stdout] 143 |     StoreAMOPageFault(u32),
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorSoftwareInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             SupervisorSoftwareInterrupt =>  1 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_software_interrupt`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineSoftwareInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             MachineSoftwareInterrupt    =>  3 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_software_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorTimerInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |             SupervisorTimerInterrupt    =>  5 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_timer_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineTimerInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |             MachineTimerInterrupt       =>  7 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_timer_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SupervisorExternalInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             SupervisorExternalInterrupt =>  9 | INTERRUPT_BIT,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `supervisor_external_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `MachineExternalInterrupt` should have a snake case name
[INFO] [stdout]   --> src/interrupt.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             MachineExternalInterrupt    => 11 | INTERRUPT_BIT,        
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_external_interrupt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 50 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rv-emu` (bin "rv-emu") due to 7 previous errors; 50 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "56cf2c1f8230816ba355f09b3b218f79f462db9eac74de034c4d8c62aec20fd8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "56cf2c1f8230816ba355f09b3b218f79f462db9eac74de034c4d8c62aec20fd8", kill_on_drop: false }`
[INFO] [stdout] 56cf2c1f8230816ba355f09b3b218f79f462db9eac74de034c4d8c62aec20fd8
